home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games: 500 MB Amiga Software / 500 MB Amiga Software - Euber 130 - Amiga Games Disc & Mag.iso / userbox / publicdomain / pointereyes / pointereyes3.11 / install next >
Text File  |  1995-11-15  |  2KB  |  88 lines

  1. ;
  2. ; $PROJECT: PointerEyes 3.11
  3. ;
  4. ; (C) Copyright 1995 John Hughes.  All Rights Reserved.
  5. ;
  6.  
  7. (if (< (/ (getversion) 65536) 37)  ;if this is < OS2.04
  8.   (
  9.     (message "\n\nSorry, PointerEyes 3.x requires AmigaDos 2.0 or greater.")
  10.     (exit (quiet))
  11.   )
  12. )
  13.  
  14. (if (> (/ (getversion) 65536) 38)  ;if this is > OS2.1
  15.   (message "\n\nSince you have AmigaDos 3.0 or greater, you may want to install PointerEyes 4.x.  It takes advantage of the datatypes.library, and allows you to customize the eye images.")
  16. )
  17.  
  18. (set mode
  19.       (askchoice
  20.             (prompt @app-name)
  21.             (help @askchoice-help)
  22.             (choices "Install" "Remove")
  23.       )
  24. )
  25.  
  26. (if mode
  27.           (set pmode "Remove")
  28.           (set pmode "Install")
  29. )
  30.  
  31. ; GET INSTALL DIRECTORY
  32. (set installdir
  33.           (askdir
  34.                      (prompt "Where do you want to put the PointerEyes executable?")
  35.                      (help @askdir-help)
  36.                      (default "SYS:WBStartup")
  37.           )
  38. )
  39.  
  40. ; do install or remove
  41. (if mode
  42.           ; Remove
  43.           (
  44.                      (working "Removing " @app-name)
  45.  
  46.                      ; Remove the non-standard pieces
  47.                      (delete (tackon installdir "PointerEyes") (infos))
  48.  
  49.                      (message "Pointer Eyes has been successfully removed.\nscreennotify.library was left in libs: since\nother applications you have may need it.")
  50.                      (exit (quiet))
  51.           )
  52.  
  53.           ; Install
  54.           (
  55.                      (working "Installing " @app-name)
  56.  
  57.                      ; Install the Executable
  58.                      (copyfiles
  59.                                 (prompt "Copying the PointerEyes Executable")
  60.                                 (help @copyfiles-help)
  61.                                 (source "PointerEyes")
  62.                                 (dest installdir)
  63.                                 (infos)
  64.                      )
  65.  
  66.                      ; Install the library
  67.                      (copylib
  68.                                 (prompt "Copying screennotify.library")
  69.                                 (help @copylib-help)
  70.                                 (source "/libs/screennotify.library")
  71.                                 (dest "libs:")
  72.                                 (confirm)
  73.                      )
  74.  
  75.                      ; install AmigaGuide file
  76.                      (copyfiles
  77.                                 (prompt "Copying AmigaGuide file")
  78.                                 (help @copyfiles-help)
  79.                                 (source "/Docs/PointerEyes.guide")
  80.                                 (dest "AmigaGuide:")
  81.                                 (confirm)
  82.                      )
  83.  
  84.           )
  85. )
  86.  
  87. (set @default-dest installdir)
  88.